﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CookieTest1.aspx.cs" Inherits="Pages_Default2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>CookieTest1</title>


    <script language="javascript" type="text/javascript">
        function Button2_onclick() {
            document.location = "CookieTest2.aspx";
        }
</script>


</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        &nbsp;Your name<p>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            &nbsp;Your favorite color</p>
        <p>
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />


            <br><br />
            <a href="CookieTest2.aspx">Go to cookie testing page (html)</a> 
            <br />
            
            <asp:Hyperlink ID="Hyperlink1" runat="server"
                NavigateURL="~/Pages/CookieTest2.aspx">Go to cookie testing page (asp control) </asp:Hyperlink>
            <br />
            <input id="Button2" type="button" value="Go to cookie testing page (javascript)"
                onclick="return Button2_onclick()" />
        </p>
    </form>
</body>
</html>
